package cn.yudao.system.service.impl;

import cn.yudao.basic.service.impl.BaseServiceImpl;
import cn.yudao.system.domain.SystemType;
import cn.yudao.system.mapper.SystemDetailMapper;
import cn.yudao.system.mapper.SystemTypeMapper;
import cn.yudao.system.service.ISystemTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SystemTypeServiceImpl extends BaseServiceImpl<SystemType> implements ISystemTypeService {

    @Autowired
    private SystemTypeMapper mapper;

    @Autowired
    private SystemDetailMapper mapper1;

    @Override
    @Transactional
    public void removeById(Long id) {
        mapper.removeById(id);
        mapper1.delete(id);
    }
    
}
